package view.components;

import view.listeners.IpAddressTablePopupListener;

public class IpAddressTablePopup {

	public IpAddressTablePopup(int x , int y, String ipAdress, String infoText, IpAddressTable addressTabel) {
		PopUpBuilder popup = new PopUpBuilder();
		if (infoText.equalsIgnoreCase("<Free>")){
			popup.addButton("Als active IP Addresse kenzeichen",
					new IpAddressTablePopupListener(addressTabel));
		}
		else{
			popup.addButton("Ip-Addresse löschen",
					new IpAddressTablePopupListener(addressTabel));
		}
		popup.show(x, y);
	}

}
